package com.itheima.admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.admin.dto.ChannelPageRequestDto;
import com.itheima.admin.pojo.AdChannel;
import com.itheima.common.vo.PageResultVo;
import com.itheima.common.vo.ResultVo;

import java.util.List;

/**
 * 业务接口
 */
public interface AdChannelService extends IService<AdChannel> {
    /**
     * 分页查询
     * @param dto
     * @return
     */
    PageResultVo<AdChannel> pageList(ChannelPageRequestDto dto);

    boolean saveChannel(AdChannel adChannel);

    AdChannel findById(Long id);

    boolean updateChannelById(AdChannel adChannel);

    boolean deleteById(Long id);
}
